Skip to content

Conversation

@threepointone
Copy link

@threepointone threepointone commented Oct 31, 2025

Updates package.json internal imports conditions and to pick the right validator based on runtime.

Motivation and Context

Instead of needing to explicitly import @modelcontextprotocol/sdk/validation/cfworker and use it, we can simply pick it directly for the workerd condition (which wrangler / the cloudflare vite plugin will do).

How Has This Been Tested?

Did some cursory testing, I'll test it some more over the weekend.

Breaking Changes

No breaking changes!

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

Updates package.json export conditions and to pick the right validator based on runtime.
@threepointone threepointone requested a review from a team as a code owner October 31, 2025 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant